package com.inpion.gusfot;

public class BodyTop extends AbstractBoardElement{
	
	private String boardTitle;
	private String boardSummary;
	
	public BodyTop() {
		super();
	}
	
	public BodyTop(String boardTitle, String boardSummary) {
		super();
		
		this.boardTitle = boardTitle;
		this.boardSummary = boardSummary;
	}

	public String getBoardTitle() {
		return boardTitle;
	}
	
	public void setBoardTitle(String boardTitle) {
		this.boardTitle = boardTitle;
	}
	
	public String getBoardSummary() {
		return boardSummary;
	}
	
	public void setBoardSummary(String boardSummary) {
		this.boardSummary = boardSummary;
	}
/*
	public String render() {
		String retString = "<tr>" + 
							"<td>" +
								getBoardTitle() + 
							"</td>" +
							"</tr>" +
							"<tr>" +
							"<td>" +
								getBoardSummary() +
							"</td>" +
							"</tr>";
		
		return retString;
	}
*/
	@Override
	public String getRenderString() {
		String retString = "<tr>" + 
				"<td>" +
					getBoardTitle() + 
				"</td>" +
				"</tr>" +
				"<tr>" +
				"<td>" +
					getBoardSummary() +
				"</td>" +
				"</tr>";

		return retString;
	}
}
